package com.conception.designpattern.patterninterface;

public class CategoryB implements ISalaryCalculator {

	double salesAmt;
	double baseSalary;
	final static double commission = 0.02;
	
	public CategoryB(final double salesAmt,final double baseSalary){
		this.baseSalary = baseSalary;
		this.salesAmt = salesAmt;
	}
	
	public double getSalary(){
		return (baseSalary + (salesAmt*commission));
	}
}
